package com.xcode.example.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 应用基础配置信息
 * @author Administrator
 */
@Component
@ConfigurationProperties(prefix = "app")
public class AppConfig {
    /**
     * 文件上传路径
     */
    private static String uploadPath;

    /**
     * 文件访问路径
     */
    private static String resourcePath;

    private static String phantomjsPath;

    private static String phantomjsCodePath;

    public static String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        AppConfig.uploadPath = uploadPath;
    }

    public static String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        AppConfig.resourcePath = resourcePath;
    }

    public static String getPhantomjsPath() {
        return phantomjsPath;
    }

    public void setPhantomjsPath(String phantomjsPath) {
        AppConfig.phantomjsPath = phantomjsPath;
    }

    public static String getPhantomjsCodePath() {
        return phantomjsCodePath;
    }

    public void setPhantomjsCodePath(String phantomjsCodePath) {
        AppConfig.phantomjsCodePath = phantomjsCodePath;
    }
}
